
#include <iostream>

using namespace std;

class Point {
private:
    int x;
    int y;
public:
    Point() {}

    Point(int x, int y) : x(x), y(y) {}

    int getX() { return x; }

    int getY() { return y; }

    int setX(int x) { this->x = x; }

    int setY(int y) { this->y = y; }

    void printInfo() { cout << "x = " << x << ", y = " << y << endl; }

    friend Point add(Point &p1, Point &p2);
};